// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_hm_dnsbl
// * CreateDate    : 2014-06-05 18:29:56
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:56
// * LastChanger   : 2014-06-05 18:29:56
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class HmDnsblEntity : EntityBase
    {
        public HmDnsblTable TableSchema
        {
            get
            {
                return HmDnsblTable.Current;
            }
		}
		
		public HmDnsblEntity()
        {

        }
		
		public HmDnsblEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Sblid = Convert.ToInt32(CommonFunctions.ToObject(dr["sblid"]));
			this.Sblactive = Convert.ToInt32(CommonFunctions.ToObject(dr["sblactive"]));
			this.Sbldnshost = Convert.ToString(CommonFunctions.ToObject(dr["sbldnshost"]));
			this.Sblresult = Convert.ToString(CommonFunctions.ToObject(dr["sblresult"]));
			this.Sblrejectmessage = Convert.ToString(CommonFunctions.ToObject(dr["sblrejectmessage"]));
			this.Sblscore = Convert.ToInt32(CommonFunctions.ToObject(dr["sblscore"]));
        }
		
		public HmDnsblEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Sblid = Convert.ToInt32(CommonFunctions.ToObject(dr["sblid"]));
			this.Sblactive = Convert.ToInt32(CommonFunctions.ToObject(dr["sblactive"]));
			this.Sbldnshost = Convert.ToString(CommonFunctions.ToObject(dr["sbldnshost"]));
			this.Sblresult = Convert.ToString(CommonFunctions.ToObject(dr["sblresult"]));
			this.Sblrejectmessage = Convert.ToString(CommonFunctions.ToObject(dr["sblrejectmessage"]));
			this.Sblscore = Convert.ToInt32(CommonFunctions.ToObject(dr["sblscore"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return HmDnsblTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public int Sblid
        {
            get { return Convert.ToInt32(GetData(HmDnsblTable.C_sblid)); }
            set { SetData(HmDnsblTable.C_sblid, value); }
        }
		
        [DataMember]
        public int Sblactive
        {
            get { return Convert.ToInt32(GetData(HmDnsblTable.C_sblactive)); }
            set { SetData(HmDnsblTable.C_sblactive, value); }
        }
		
        [DataMember]
        public string Sbldnshost
        {
            get { return Convert.ToString(GetData(HmDnsblTable.C_sbldnshost)); }
            set { SetData(HmDnsblTable.C_sbldnshost, value); }
        }
		
        [DataMember]
        public string Sblresult
        {
            get { return Convert.ToString(GetData(HmDnsblTable.C_sblresult)); }
            set { SetData(HmDnsblTable.C_sblresult, value); }
        }
		
        [DataMember]
        public string Sblrejectmessage
        {
            get { return Convert.ToString(GetData(HmDnsblTable.C_sblrejectmessage)); }
            set { SetData(HmDnsblTable.C_sblrejectmessage, value); }
        }
		
        [DataMember]
        public int Sblscore
        {
            get { return Convert.ToInt32(GetData(HmDnsblTable.C_sblscore)); }
            set { SetData(HmDnsblTable.C_sblscore, value); }
        }
		
		#endregion
	}
	
	
}	

